<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    div{
        display: flex;
        width: 800px;
        height: 400px;
        background-color: pink;
        flex-direction: column;
        flex-wrap: wrap;
    }
    div span {
        width: 150px;
        height: 100px;
        background-color: purple;
       
    }
</style>
<body>
    <div>
        <span>1</span>
        <span>1</span>
        <span>1</span>
        <span>1</span>
        <span>1</span>
       
    </div>
    
</body>
</html>